using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using Framework.Module.FAQ.Library.Providers;

namespace Framework.Module.FAQ.Library.Questions
{
	public class QuestionController
	{
		public static DataTable GetQuestions()
		{
			return DataAccessProvider.instance().GetQuestions();
		}
        public static DataTable GetQuestionsByFAQ_Show()
		{
			return DataAccessProvider.instance().GetQuestionsByFAQ_Show();
		}
        public static DataTable getQuestionByFAQShow(int zoneID, string lang)
        {
            return DataAccessProvider.instance().getQuestionByFAQShow(zoneID, lang);
        }

        public static DataTable getZone(int faq_parentid, string lang)
        {
            return DataAccessProvider.instance().getZone(faq_parentid,lang);
        }
        public static DataTable get_AllQuestion(int zoneid, string lang)
        {
            return DataAccessProvider.instance().get_AllQuestion(zoneid,lang);
        }
        
		public static DataTable GetAllQuestions()
		{
			return DataAccessProvider.instance().GetAllQuestions();
		}

        public static DataTable getAll()
        {
            return DataAccessProvider.instance().getAll();
        }

        public static DataTable getQuestionWithZone(int zoneid)
        {
            return DataAccessProvider.instance().getQuestionWithZone(zoneid);
        }

		public static void SetQuestionIndex(int id, int index)
		{
			DataAccessProvider.instance().SetQuestionIndex(id, index);
		}

		public static void SetQuestionStatus(int id, bool status)
		{
			DataAccessProvider.instance().SetQuestionStatus(id, status);
		}
        public static void SetQuestionShow(int id, bool show)
        {
            DataAccessProvider.instance().SetQuestionShow(id, show);
        }

		public static void DeleteQuestion(int _fAQ_ID)
		{
			DataAccessProvider.instance().DeleteQuestion(_fAQ_ID);
		}

		public static int CreateQuestion(QuestionInfo _questionInfo)
		{
			return DataAccessProvider.instance().CreateQuestion(_questionInfo);
		}
		public static void UpdateQuestion(QuestionInfo _questionInfo)
		{
			DataAccessProvider.instance().UpdateQuestion(_questionInfo);
		}
        public static void UpdateQuestion_Show(QuestionInfo _questionInfo)
        {
            DataAccessProvider.instance().UpdateQuestion_Show(_questionInfo);
        }

		public static QuestionInfo GetQuestion(int _fAQ_ID)
		{
			return DataAccessProvider.instance().GetQuestion(_fAQ_ID);
		}
	}
}
